package com.cloudlead.commonData.query;

import static com.mysema.query.types.PathMetadataFactory.*;
import com.cloudlead.commonData.entity.ETbPlacePrice;


import com.mysema.query.types.path.*;

import com.mysema.query.types.PathMetadata;
import javax.annotation.Generated;
import com.mysema.query.types.Path;

import com.mysema.query.sql.ColumnMetadata;
import java.sql.Types;

import com.mysema.query.sql.*;

import com.cloudlead.common.lang.annotation.Label;


/**
 * QTbPlacePrice is a Querydsl query type for ETbPlacePrice
 */
@Label("TbPlacePrice查询")
@Generated("com.cloudlead.utils.persistence.codegen.serializer.SimpleMetaDataSerializer")
public class QTbPlacePrice extends RelationalPathBase<ETbPlacePrice> {

    private static final long serialVersionUID = 443933881;

    public static final QTbPlacePrice tbPlacePrice = new QTbPlacePrice("tb_place_price");

    public class PrimaryKeys {

        public final PrimaryKey<ETbPlacePrice> primary = createPrimaryKey(id);

    }

    public class ForeignKeys {

        public final ForeignKey<com.cloudlead.commonData.entity.ERegion> tbPlacePriceBasePlace1Fk = createForeignKey(basePlaceId, "id");

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseDock> tb_placePriceBaseDock1Fk = createForeignKey(baseDockId, "id");

        public final ForeignKey<com.cloudlead.commonData.entity.ERegion> tbDoor5Fk = createForeignKey(door5, "id");

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseCompany> tb_placePriceBaseCompany1Fk = createForeignKey(baseCompanyId, "id");

        public final ForeignKey<com.cloudlead.commonData.entity.ETbCustomerOrder> _delCarPriceFk = createInvForeignKey(id, "delCarPriceId");

        public final ForeignKey<com.cloudlead.commonData.entity.ETbCustomerOrder> _polCarPriceFk = createInvForeignKey(id, "polCarPriceId");

    }

    public final StringPath areaDescription = createString("areaDescription");

    public final StringPath baseCompanyId = createString("baseCompanyId");

    public final StringPath baseDockId = createString("baseDockId");

    public final StringPath basePlaceId = createString("basePlaceId");

    public final StringPath comments = createString("comments");

    public final NumberPath<Double> containerNull = createNumber("containerNull", Double.class);

    public final StringPath containerSize = createString("containerSize");

    public final StringPath containerType = createString("containerType");

    public final StringPath door5 = createString("door5");

    public final StringPath flag = createString("flag");

    public final NumberPath<Double> gp20 = createNumber("gp20", Double.class);

    public final NumberPath<Double> gp40 = createNumber("gp40", Double.class);

    public final NumberPath<Double> hc40 = createNumber("hc40", Double.class);

    public final StringPath id = createString("id");

    public final NumberPath<Double> price = createNumber("price", Double.class);

    public final NumberPath<Integer> stae = createNumber("stae", Integer.class);

    public final NumberPath<Double> tk40 = createNumber("tk40", Double.class);

    public final PrimaryKeys pk = new PrimaryKeys();

    public final ForeignKeys fk = new ForeignKeys();

    public QTbPlacePrice(String variable) {
        super(ETbPlacePrice.class, forVariable(variable), "null", "tb_place_price");
        addMetadata();
    }

    public QTbPlacePrice(String variable, String schema, String table) {
        super(ETbPlacePrice.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QTbPlacePrice(Path<? extends ETbPlacePrice> path) {
        super(path.getType(), path.getMetadata(), "null", "tb_place_price");
        addMetadata();
    }

    public QTbPlacePrice(PathMetadata<?> metadata) {
        super(ETbPlacePrice.class, metadata, "null", "tb_place_price");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(areaDescription, ColumnMetadata.named("areaDescription").withIndex(17).ofType(Types.VARCHAR).withSize(500));
        addMetadata(baseCompanyId, ColumnMetadata.named("base_company_id").withIndex(5).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(baseDockId, ColumnMetadata.named("base_dock_id").withIndex(3).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(basePlaceId, ColumnMetadata.named("base_place_id").withIndex(4).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(comments, ColumnMetadata.named("Comments").withIndex(2).ofType(Types.VARCHAR).withSize(45));
        addMetadata(containerNull, ColumnMetadata.named("containerNull").withIndex(16).ofType(Types.DOUBLE).withSize(22));
        addMetadata(containerSize, ColumnMetadata.named("containerSize").withIndex(7).ofType(Types.CHAR).withSize(24));
        addMetadata(containerType, ColumnMetadata.named("containerType").withIndex(8).ofType(Types.CHAR).withSize(24));
        addMetadata(door5, ColumnMetadata.named("door5").withIndex(11).ofType(Types.CHAR).withSize(24));
        addMetadata(flag, ColumnMetadata.named("flag").withIndex(6).ofType(Types.VARCHAR).withSize(8));
        addMetadata(gp20, ColumnMetadata.named("gp20").withIndex(12).ofType(Types.DOUBLE).withSize(22));
        addMetadata(gp40, ColumnMetadata.named("gp40").withIndex(13).ofType(Types.DOUBLE).withSize(22));
        addMetadata(hc40, ColumnMetadata.named("hc40").withIndex(14).ofType(Types.DOUBLE).withSize(22));
        addMetadata(id, ColumnMetadata.named("id").withIndex(1).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(price, ColumnMetadata.named("price").withIndex(9).ofType(Types.DOUBLE).withSize(22));
        addMetadata(stae, ColumnMetadata.named("stae").withIndex(10).ofType(Types.INTEGER).withSize(10));
        addMetadata(tk40, ColumnMetadata.named("tk40").withIndex(15).ofType(Types.DOUBLE).withSize(22));
    }

}

